﻿
using BCCommon;
using BCCommon.Enums;
using BCData.OA.WorkflowTemplate.WorkflowTemplateStepFormConfig;
using BCDto.OA.WorkflowTemplate.WorkflowTemplateStepFormConfig;
using BCDto.Sim.Admin.Admin;
using BCEntity.OA.WorkflowTemplate.WorkflowTemplateStepFormConfig;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.OA.WorkflowTemplate.WorkflowTemplateStepFormConfig
{
	/// <summary>
	/// 工作流模板步骤表单配置
	/// </summary>
	public interface IWorkflowTemplateStepFormConfigService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workflowTemplateStepFormConfigId">工作流模板步骤表单配置Id</param>
		bool Exists(long workflowTemplateStepFormConfigId);
		/// <summary>
		/// 添加工作流模板步骤表单配置
		/// </summary>
		/// <param name="requestDto">工作流模板步骤表单配置信息</param>
		/// <param name="adminDto"></param>
		WorkflowTemplateStepFormConfigDto Add(WorkflowTemplateStepFormConfigRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新工作流模板步骤表单配置
		/// </summary>
		/// <param name="putDto">工作流模板步骤表单配置信息</param>
		/// <param name="adminDto"></param>
		WorkflowTemplateStepFormConfigDto Update(WorkflowTemplateStepFormConfigPutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除工作流模板步骤表单配置
		/// </summary>
		/// <param name="workflowTemplateStepFormConfigId">工作流模板步骤表单配置Id</param>
		bool Delete(long workflowTemplateStepFormConfigId);
		/// <summary>
		/// 获取工作流模板步骤表单配置
		/// </summary>
		/// <param name="workflowTemplateStepFormConfigId">工作流模板步骤表单配置Id</param>
		WorkflowTemplateStepFormConfigDto Get(long workflowTemplateStepFormConfigId);
		/// <summary>
		/// 获取工作流模板步骤表单配置列表
		/// </summary>
		/// <param name="formCategoryCode">表单分类Code</param>
		IEnumerable<WorkflowTemplateStepFormConfigDto> GetList(string formCategoryCode);
		/// <summary>
		/// 获取工作流模板步骤表单配置分页列表
		/// </summary>
		/// <param name="formCategoryCode">表单分类Code</param>
		/// <param name="formConfigTitle">表单配置标题</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作流模板步骤表单配置每页数据条数</param>
		PageableList<WorkflowTemplateStepFormConfigDto> Query(string formCategoryCode, string formConfigTitle, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
		/// <summary>
		/// 获取自定义表单树形列表
		/// </summary>
		/// <returns></returns>
		List<object> TemplateTree();
	}
}